package com.example.dbsample.mapper;

import org.mapstruct.MapperConfig;

import java.util.List;
import java.util.stream.Stream;

@MapperConfig
public interface MyBaseMapping<SOURCE, TARGET> {
    TARGET source2Target(SOURCE var1);

    SOURCE target2Source(TARGET var1);

    List<TARGET> source2Target(List<SOURCE> var1);

    List<SOURCE> target2Source(List<TARGET> var1);

    List<TARGET> source2Target(Stream<SOURCE> var1);

    List<SOURCE> target2Source(Stream<TARGET> var1);
}
